/*--App--*/
var _self = this, _table = null, _tabControl = null;
var _html;
_self.index = function (search, data) {
    var a = this;
    _table = new $.Form.Table({
        module: a.module,
        app: a.app,
        rowNum: true,
        bAutoCallBack: true,
        oTableButtons: {
            upload: "add"
        },
        action: {
        },
        pk: "id",
        //aaSorting: [['time', 'desc']],
        oTableSearch: {
            content: search,
            clear: true
        },
        thead: {
            id: {
                sClass: "center",
                bVisible: false
            },
            title: {
                sClass: "nowrap  ",
                sWidth: '1'
            },
            nickname: {
                sClass: "nowrap  ",
                sWidth: '1'
            },
            img: {
                sClass: "center details",
                sType: 'tipimage',
                fnClick: function (e) {
                    var _click_tr = $(this).parent("tr")[0];
                    var data = _table.DataTable.fnGetData(_click_tr);
                    //$.request(a.A('priview'), {id: data.img});
                    $.dialog(data.master_img, a.L('priview'))
                }
            },
            time: {
                sClass: "center",
                sType: 'datetime'
            },
            zan: {
                sClass: "center",
            },
            status: {
                sClass: "center",
                sType: 'status'
            },
        }
    });

    _tabControl = $.TabControl.addControl({app: a.app, module: a.module, action: a.action, Control: _table});

};
/*--/App--*/